#ifndef _SWT_ENV_WIN_LINUX_H_
#define _SWT_ENV_WIN_LINUX_H_

/////////////////////////////////////////
//  WEITAO SUN added; 2021.4.14;


// #define _SWT_WIN32_
#define _SWT_XWIN_

//#define _SWT_MPI_
#ifdef _SWT_WIN32_
#define SWT_SLASH   '\\'
#else
#define SWT_SLASH   '/'
#endif

// use '_' functions in Windows; weitao sun, 2011.7.25;
#ifdef _SWT_WIN32_
#define swt_getcwd _getcwd
#define swt_chdir _chdir
#elif defined _SWT_XWIN_

#define swt_getcwd getcwd
#define swt_chdir  chdir
#endif

#ifdef _SWT_XWIN_
#define __int64 long long
#endif

#ifdef _SWT_WIN32_
#include <direct.h>
#include <Windows.h>
#include <tlhelp32.h>
#include <shlobj.h>
#else
#include <unistd.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/sysinfo.h>
#include <pwd.h>
#include <sys/types.h>
#include <unistd.h>
#endif

#endif
